// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
// import Meta from 'vue-meta'
import 'element-ui/lib/theme-chalk/index.css'
import '~common/assets/css/default.css'
import 'babel-polyfill'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
 // Vue.prototype.$axios = axios

Vue.config.productionTip = false
/* eslint-disable no-new */

// 适配
  let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
  let recalc = function () {
    document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px'
  }
  window.addEventListener(resizeEvt, recalc, false)
  document.addEventListener('DOMContentLoaded', recalc, false)
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
